<?php

namespace app\user\validate;

use app\common\validate\BaseValidate;

class FansValidate extends BaseValidate
{
    /**
     * 验证规则
     */
    protected $field = [
        'fans_id'     => '粉丝ID',
        'user_id'     => '对应的用户ID',
        'fans_type'   => '粉丝类型:1=微信;2=支付宝',
        'username'    => '账号',
        'mobile'      => '手机',
        'nickname'    => '昵称',
        'head_pic'    => '头像',
        'openid'      => 'openid',
        'sex'         => '性别',
        'birthday'    => '生日',
        'is_auth'     => '授权',
        'status'      => '0=禁用',
        'is_delete'   => '0=未删',
        'create_time' => '创建日期',
        'update_time' => '更新日期',

    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'update'       => [],
        'save'         => [],
        'authUserInfo' => [
            'fans_id' => 'require',
            'userInfo',
        ],
        'authMobile'   => [
            'fans_id' => 'require',
            'mobile'  => 'require',
        ],
        'decode'       => [
            "iv"            => "require",
            "encryptedData" => "require",
            "sessionKey"    => "require"
        ]
    ];

    /**
     * 提示消息
     */
    protected $message = [

    ];


}
